package com.study.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * 中心组学习
 */
@TableName("studygroup")
public class StudyGroup {
    @TableId(type = IdType.NONE)
    private Integer studyId;
    private String studyTitle;
    private String studyContex;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date studyDate;
    private String studyWrite;
    private Integer studyNum;
    private Integer goodNum;
    private String studyCollect;
    private String studyImage;
    //学习分类Studyclassify(0代表学习内容,1代表学习讨论)
    private Integer studyClassify;
    @TableField(exist = false)
    private Userinfo user;

}
